/* USER CODE BEGIN Header */
/**
  ******************************************************************************
  * @file           : main.h
  * @brief          : Header for main.c file.
  *                   This file contains the common defines of the application.
  ******************************************************************************
  * @attention
  *
  * Copyright (c) 2025 STMicroelectronics.
  * All rights reserved.
  *
  * This software is licensed under terms that can be found in the LICENSE file
  * in the root directory of this software component.
  * If no LICENSE file comes with this software, it is provided AS-IS.
  *
  ******************************************************************************
  */
/* USER CODE END Header */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __MAIN_H
#define __MAIN_H

#ifdef __cplusplus
extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "stm32h7xx_hal.h"

/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */

/* USER CODE END Includes */

/* Exported types ------------------------------------------------------------*/
/* USER CODE BEGIN ET */

/* USER CODE END ET */

/* Exported constants --------------------------------------------------------*/
/* USER CODE BEGIN EC */

/* USER CODE END EC */

/* Exported macro ------------------------------------------------------------*/
/* USER CODE BEGIN EM */

/* USER CODE END EM */

void HAL_TIM_MspPostInit(TIM_HandleTypeDef *htim);

/* Exported functions prototypes ---------------------------------------------*/
void Error_Handler(void);

/* USER CODE BEGIN EFP */

/* USER CODE END EFP */

/* Private defines -----------------------------------------------------------*/
#define POWER_Pin GPIO_PIN_2
#define POWER_GPIO_Port GPIOE
#define V24O1_Pin GPIO_PIN_3
#define V24O1_GPIO_Port GPIOE
#define V24O2_Pin GPIO_PIN_4
#define V24O2_GPIO_Port GPIOE
#define M7_Pin GPIO_PIN_5
#define M7_GPIO_Port GPIOE
#define M8_Pin GPIO_PIN_6
#define M8_GPIO_Port GPIOE
#define IOIN1_Pin GPIO_PIN_13
#define IOIN1_GPIO_Port GPIOC
#define IOIN2_Pin GPIO_PIN_14
#define IOIN2_GPIO_Port GPIOC
#define FAN_Pin GPIO_PIN_15
#define FAN_GPIO_Port GPIOC
#define M1_Pin GPIO_PIN_0
#define M1_GPIO_Port GPIOA
#define M2_Pin GPIO_PIN_1
#define M2_GPIO_Port GPIOA
#define M3_Pin GPIO_PIN_2
#define M3_GPIO_Port GPIOA
#define M5_Pin GPIO_PIN_7
#define M5_GPIO_Port GPIOA
#define LED2_Pin GPIO_PIN_12
#define LED2_GPIO_Port GPIOB
#define LED1_Pin GPIO_PIN_13
#define LED1_GPIO_Port GPIOB
#define AT24C_SCL_Pin GPIO_PIN_14
#define AT24C_SCL_GPIO_Port GPIOB
#define AT24C_SDA_Pin GPIO_PIN_15
#define AT24C_SDA_GPIO_Port GPIOB
#define BUTTON_Pin GPIO_PIN_11
#define BUTTON_GPIO_Port GPIOD
#define HDC_SDA_Pin GPIO_PIN_12
#define HDC_SDA_GPIO_Port GPIOD
#define HDC_SCL_Pin GPIO_PIN_13
#define HDC_SCL_GPIO_Port GPIOD
#define BEEP_Pin GPIO_PIN_3
#define BEEP_GPIO_Port GPIOG
#define M6_Pin GPIO_PIN_8
#define M6_GPIO_Port GPIOC
#define M4_Pin GPIO_PIN_11
#define M4_GPIO_Port GPIOA
#define T_MOSI_Pin GPIO_PIN_7
#define T_MOSI_GPIO_Port GPIOD
#define T_MISO_Pin GPIO_PIN_9
#define T_MISO_GPIO_Port GPIOG
#define T_CS_Pin GPIO_PIN_10
#define T_CS_GPIO_Port GPIOG
#define T_SCK_Pin GPIO_PIN_11
#define T_SCK_GPIO_Port GPIOG
#define LCD_BCK_Pin GPIO_PIN_14
#define LCD_BCK_GPIO_Port GPIOG
#define CTP_INT_Pin GPIO_PIN_4
#define CTP_INT_GPIO_Port GPIOB
#define CTP_RST_Pin GPIO_PIN_5
#define CTP_RST_GPIO_Port GPIOB
#define CTP_SCL_Pin GPIO_PIN_6
#define CTP_SCL_GPIO_Port GPIOB
#define CTP_SDA_Pin GPIO_PIN_7
#define CTP_SDA_GPIO_Port GPIOB

/* USER CODE BEGIN Private defines */

/* USER CODE END Private defines */

#ifdef __cplusplus
}
#endif

#endif /* __MAIN_H */
